Skip to content

Conversation

@abkfenris
Copy link

@abkfenris abkfenris commented Sep 2, 2025

I wanted to share an early draft PR before implementing too many rules to make sure I'm on the right track.

The IOOS compliance checker has implemented their own tests for ACDD, CF, IOOS, and others, but have ended up with a much more complex and hard to adapt library in the process. There is interest in using XRLint to help simplify things, and make it easier to share work across the ecosystem. Along those lines an idea is to move tests/rules upstream if there is interest rather than keeping their own implementation.

I've converted many of the more general ACDD global attribute tests over here.

An initial set of ACDD tests.

Adapted from ioos/compliance_checker.
@forman
Copy link
Member

forman commented Nov 19, 2025

@abkfenris, thank you very much and we apologize for overlooking this. We are extremely busy at the moment, which is why xrlint's maintenance has been somewhat neglected.

@abkfenris
Copy link
Author

@forman Glad to hear that xrlint is still something you're working on.

We're still interested in implementing tests for ACDD and other conventions, but didn't want to go too far down the wrong track or sink a lot of effort into something that is no longer maintained.

@forman
Copy link
Member

forman commented Nov 20, 2025

It is in active use in our company (for sure a few others), just maintenance slowed down recently. We'll be back!

@abkfenris
Copy link
Author

Great! When I went asking around the community many folks hadn't heard about it but were very interested.

Copy link
Member

@forman forman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks already very good. Great work! We are happy to take this on board.

To move forward, could you please also

  • Describe in CHANGES.md what will we added
  • Adapt the rule documentation generator mkruleref.py to also convert the new rules into markdown docs.
  • Run the converter to update docs/rule-ref.md

Note, I wont be able to support you until the 14.01.2026, therefore pls contact my colleague @clarasb.

@abkfenris
Copy link
Author

Great, I'll work on getting those ready by the time you're back, and I may have some additional ACDD tests adapted as well.

@forman
Copy link
Member

forman commented Dec 19, 2025

...and please add yourself to the list of authors in pyproject.toml.

Adds documentation for ACDD tests, isodate to the dependencies, and updates the changes.
@abkfenris abkfenris marked this pull request as ready for review December 29, 2025 18:58
Looks like pip in tests isn’t ready for the newer `dependency-groups` for development tooling that uv prefers.
@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.48%. Comparing base (cbaf81a) to head (2be2967).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
+ Coverage   99.46%   99.48%   +0.02%     
==========================================
  Files          67       74       +7     
  Lines        2810     2927     +117     
  Branches      413      425      +12     
==========================================
+ Hits         2795     2912     +117     
  Partials       15       15              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@clarasb clarasb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @abkfenris ! That looks good to me.

Please consider

  • the change suggestion,
  • to fix the reccomended typo,
  • and to add the acdd plugin to the Readme.

Then, let's wait for a final review from @forman.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants